package intermediate

var a = 10
    get() = field * 9
    set(value) {
        println("我被赋值了")
        field = value
    }

fun main() {
    a = 90
    println(a)//输出810，先set a=90,在get*9=810;
}